#-*-coding:utf-8-*-

import pyzbar.pyzbar as pyzbar
import cv2

fileName = "127.png"
img = cv2.imread(fileName)
cv2.imshow("图像", img)
print("哈哈")
barcodes = pyzbar.decode(img)

for barcode in barcodes:
    barcodeData = barcode.data.decode("utf-8")
    print(barcodeData)

cv2.waitKey()